package com.drug.wms.domain;

import java.math.BigDecimal;

import com.drug.common.annotation.Dict;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.drug.common.annotation.Excel;
import com.drug.common.core.domain.BaseEntity;

/**
 * 商品-价格关联对象 bus_goods_price_relation
 * 
 * @author ruoyi
 * @date 2021-11-09
 */
public class BusGoodsPriceRelation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private String id;

    /** 商品编号 */
    @Excel(name = "商品编号")
    private String goodsNo;

    /** 价格类型编号 */
    @Excel(name = "价格类型编号")
    @Dict(dictTable = "bus_price_conf",dicText = "price_name",dicCode = "id")
    private String priceTypeNo;


    private String priceTypeNo_dictText;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 数据状态 */
    @Excel(name = "数据状态")
    private String validityCode;

    /** 部门ID */
    @Excel(name = "部门ID")
    private Long deptId;

    public String getPriceTypeNo_dictText() {
        return priceTypeNo_dictText;
    }

    public void setPriceTypeNo_dictText(String priceTypeNo_dictText) {
        this.priceTypeNo_dictText = priceTypeNo_dictText;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setGoodsNo(String goodsNo) 
    {
        this.goodsNo = goodsNo;
    }

    public String getGoodsNo() 
    {
        return goodsNo;
    }
    public void setPriceTypeNo(String priceTypeNo) 
    {
        this.priceTypeNo = priceTypeNo;
    }

    public String getPriceTypeNo() 
    {
        return priceTypeNo;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setValidityCode(String validityCode)
    {
        this.validityCode = validityCode;
    }

    public String getValidityCode()
    {
        return validityCode;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("goodsNo", getGoodsNo())
            .append("priceTypeNo", getPriceTypeNo())
            .append("price", getPrice())
            .append("remark", getRemark())
            .append("validityCode", getValidityCode())
            .append("deptId", getDeptId())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
